import service from './index';
export default {
    getTasks(){
        return service.get('/tasks');
    },
    createTask(description,expected_completion_time){
        return service.post('/tasks',{
            description,
            expected_completion_time
        })
    },
    deleteTask(id){
        return service.delete(`/tasks/${id}`);
    },
    updateTask(id){
        return service.put(`/tasks/${id}`);
    }
}